#ifndef _MY_BUFFER_H_
#define _MY_BUFFER_H_

class MyBuffer
{
public:
	MyBuffer(const int p_nBufferSize = 1 * 1024);
	~MyBuffer();

public:
	bool push(const char* p_szContent, const int p_nContentLen);
	int pop(char* p_pAllContent);

private:
	char*	m_szBuffer;
	int		m_nSize;
	int		m_nUsed;
};

#endif